package com.yangle.frame.admin.mapper;

/**
 * Created by yangle on 2018/6/1.
 */


import java.util.List;
import com.yangle.frame.MyMapper;
import com.yangle.frame.admin.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper extends MyMapper<User>{

    /**
     * 获取所有用户
     *
     * @return
     */
    List<User> getUsers();

    @Select("select * from tb_user limit 1")
    User getUser();

}